home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Developer's Companion
/
Java Developer's Companion.iso
/
Javacup
/
EDUHM01H.TAR
/
education
/
EDUHM01H
/
multiply.t
< prev
next >
Wrap
Text File
|
1996-05-21
|
365b
|
34 lines
# This program multiplies two unary numbers
# separated by a zero and prints result to the right
110111
29
0 1 2 x
2 x 2 >
2 1 2 >
2 0 3 >
3 1 4 x
4 x 5 >
5 1 5 >
5 - 6 >
6 - 7 1
6 1 6 >
7 1 7 >
7 - 8 <
8 1 8 <
8 - 9 <
9 1 9 <
9 x 10 >
10 x 10 >
10 1 4 x
10 - 11 <
11 1 11 <
11 0 12 <
11 x 11 1
12 1 12 <
12 x 13 >
13 x 13 >
13 1 2 x
13 0 14 <
14 x 14 1
14 1 14 <